The source code for SurfSim is currently available for sale (in whole or in part, exclusive or nonexclusive); interested parties can get in touch me at either address in the previous section.
Some parts which may be of interest:
- Fast implementation of the Park-Miller minimal standard random number generator with shuffle, hand-coded in PowerPC 601 assembly language. It runs four times faster than equivalent C code (compiled in CW 9).
- Fast implementation of the Park Miller minimal standard random number generator with shuffle, written in 68020 assembly language. It runs fifteen times faster than equivalent C code (compiled in CW 9).
- Pink noise generator; two versions, one in 68020 assembly, one in C.
- Stereo panning routine, which converts a buffer of monophonic sound samples into a stereo signal with the appropriate phase relationship between channels to achieve the illusion of a moving source.
- Sound engine, responsible for filling buffers with sound, playing them, and ensuring smooth utilization of system resources. Specifically, it uses a multibuffering scheme and fills the buffers with deferred tasks.
I'm also available as a Macintosh programming consultant (contract work only). If you have a sound-related development need, contact me for a quote.